Heat the oven to 375°F (190°C) and butter a 9x13-inch baking dish.
Warm the cream, milk, garlic, thyme, salt and pepper in a saucepan over medium heat until just steaming — do not boil hard.
Layer half the potato slices in the dish, slightly overlapping. Pour over half the warm cream mixture and scatter over half the cheddar and Parmesan. Repeat with the remaining potatoes, cream and cheeses. Press gently so the slices settle into the sauce.
Cover tightly with foil and bake 45 minutes. Uncover and bake 25–35 minutes more, until the top is golden and a knife slides easily through the centre.
Rest 10 minutes before slicing and serving, so the sauce sets.