Steam the onions, garlic and paprika. Add the remaining ingredients and simmer until a thick sauce is formed. Season with salt and pepper.
Line a pudding pan with slices of bread. Pour in the sauce and cover with slices of bread. Cover with a plate and weigh down a heavy object. Put in the fridge overnight.