Preheat your oven to 375°F (190°C).
Grease a baking dish with butter or oil.
Layer half of the sliced potatoes at the bottom of the dish.
Sprinkle half of the minced garlic over the potatoes.
Season with salt and pepper.
Pour half of the cream and milk mixture over the potatoes.
Add half of the shredded cheese on top.
Repeat the layers with the remaining potatoes, garlic, cream, and cheese.
Cover the dish with foil and bake for 40 minutes.
Remove the foil and bake for an additional 20 minutes or until the top is golden brown.