Preheat the oven to 200°C. Slice the potatoes and the onions thinly. Mix the cream and milk together and season generously with salt, pepper and nutmeg. Combine the onions and potatoes with the cream mixture in a gratin dish. Add the sprigs of thyme and