Preheat the oven to 425 degrees Fahrenheit.
In a small pot, add the heavy cream along with thyme, garlic, nutmeg and salt and pepper. Bring the cream to a gentle simmer to warm through, for about 5-7 minutes.
Meanwhile, place a medium sized skillet over medium heat and drizzle with olive oil. Add the sliced leeks and sauté until the leeks are soft but not browned, for about 10-12 minutes. Once done, set the skillet aside.
Grease a medium sized 8 x 10 inch casserole dish with 1 tablespoon of softened butter, all around the bottom and sides of the dish.
Transfer half pf the sautéed leeks to the bottom of the casserole dish, then stack the sliced potatoes on top and then layer the other half of the sautéed leeks on top.
Remove the thyme and garlic from the cream mixture and gently pour the warm cream around the sliced potatoes.
Top the gratin with shredded gouda, Parmesan cheese and fresh thyme.
Place the gratin on a small baking sheet, just in case it spills over and place in the oven for 45-50 minutes, until the potatoes are tender and cream has thickened.
If the top doesn't brown as much as you like, place potato gratin under the broiler for 3-5 minutes.