Pour the cream over the sliced potatoes in a pan. Add the garlic and season with salt, pepper and nutmeg. Bring to the boil then stir in the leeks and onions. Pour the mixture into the prepared dish to a depth of 4 cm (1½ in., covering with all the cream.