Prepare the Cheese Sauce
Melt 2 tablespoons of butter in a saucepan over medium heat. Add the minced garlic and sauté for about 1-2 minutes until fragrant but not browned. Pour in the heavy cream and whisk in the flour gradually to prevent lumps. Add salt, pepper, and fresh thyme leaves, continuing to whisk as the mixture thickens. Once the sauce begins to simmer, reduce heat and stir in 1 cup of freshly shredded Gruyère cheese until completely melted and smooth.
Layer the Potatoes
Butter a 9x13 inch baking dish with the softened butter, ensuring the entire surface is coated. Arrange a layer of thinly sliced russet potatoes in the dish, slightly overlapping each slice. Season lightly with additional salt and pepper if desired. Continue layering the potatoes, adding light seasoning between each layer until all potatoes are used.
Add the Cheese Sauce
Pour the prepared cheese sauce evenly over the layered potatoes, ensuring the sauce seeps between the layers. Gently shake the dish or use a spatula to help the sauce distribute evenly throughout all the potato layers. This ensures every bite will have the creamy, cheesy goodness.
Initial Baking
Cover the baking dish tightly with aluminum foil. Place in a preheated 400°F (200°C) oven and bake for 1 hour and 15 minutes, or until the potatoes are tender when pierced with a fork. The foil helps trap moisture and steam the potatoes while they absorb the flavorful sauce.
Final Browning
Remove the foil and sprinkle the remaining 1 cup of Gruyère cheese evenly over the top of the potatoes. Return to the oven uncovered and bake for an additional 5 minutes until the cheese melts. Then, switch the oven to broil and broil for 3-5 minutes until the top is golden brown and bubbling. Watch carefully to prevent burning. If desired, garnish with freshly chopped chives before serving.