Heat the oven to 170 C and rub a 2-litre baking dish with garlic and butter.
Warm cream, milk, salt, pepper and nutmeg in a saucepan.
Layer the potatoes in the dish, pouring a little cream between layers.
Pour the remaining cream over the top and cover with foil.
Bake for 55 minutes, then remove the foil.
Scatter over Gruyere and bake for 20 minutes until browned and tender.