01 - Preheat oven to 375°F. Butter a 9x13-inch baking dish thoroughly.
02 - In a saucepan over medium heat, combine heavy cream, milk, garlic, thyme, salt, black pepper, and nutmeg if using. Warm gently until steaming without boiling, then remove from heat.
03 - Place half of the sliced potatoes evenly in the prepared baking dish. Sprinkle evenly with half the Gruyère and Parmesan cheeses.
04 - Pour half of the warm cream mixture evenly over the potato and cheese layer.
05 - Arrange the remaining sliced potatoes over the previous layer. Top with the remaining Gruyère and Parmesan cheeses.
06 - Pour the remaining cream mixture evenly over the top. Dot with the unsalted butter.
07 - Cover the baking dish with foil and bake for 40 minutes.
08 - Remove foil and continue baking for an additional 20 minutes until the top is golden and potatoes are tender.
09 - Allow to rest for 10 minutes before serving. Garnish with extra fresh thyme leaves.