Heat the oven to 180°C (350°F). Grease a 23 x 33 cm (9 x 13 inch) baking dish with a little butter.
Melt the butter in a light-colored pan over medium heat. Swirl it for 4 to 5 minutes until it smells nutty and turns golden brown with toasty flecks. Take it off the heat, stir in the garlic, and let it sit for 1 minute.
Warm the cream and milk gently in a small pot or the microwave until just warm, not boiling. Stir in the salt, pepper, nutmeg, and thyme.
Toss the sliced potatoes in a large bowl with the brown butter and garlic. Add the warm cream mixture and half of the Gruyère, then mix until every slice is coated.
Spread everything into the dish, pressing it down flat. Pour any liquid left in the bowl over the top. Cover tightly with foil and bake for 40 minutes.
Remove the foil and sprinkle on the remaining Gruyère and the Parmesan. Raise the oven to 200°C (400°F) and bake 20 to 25 minutes, until the top is deep golden and the sauce is bubbling at the edges. A knife should slide through the potatoes with no resistance.
Rest for 10 minutes before serving. Finish with a little extra thyme.