Preheat oven to 375°F (190°C) and grease a 9x13-inch baking dish.
Melt butter in a saucepan and sauté garlic 30 seconds.
Stir in flour and cook 1–2 minutes to form a roux.
Slowly whisk in milk and cream until smooth.
Cook 3–4 minutes until sauce thickens slightly.
Stir in salt, pepper, nutmeg, and half the shredded cheese.
Layer half of sliced potatoes in baking dish.
Pour half of cheese sauce over potatoes.
Repeat layers and top with remaining cheese and Parmesan.
Cover with foil and bake 45 minutes.
Remove foil and bake 20–25 minutes until golden and tender.
Rest 10 minutes before serving and garnish with thyme.