8. Spread a layer of sliced potatoes in the bottom of the pan, then sprinkle some of the cheese and onion mixture on top of the potatoes.
user
1. Repeat layering the potatoes and cheese until you reach the top of the pan or run out of ingredients.

8. Bake the dish for 45-50 minutes in the oven, or until the potatoes are fork-tender and the cheese is melted and bubbly.

9. Remove the pan from the oven and let it rest for 5-10 minutes before slicing and serving.

10. Garnish with chopped fresh herbs or more grated cheese, if desired.

11. Optional: Serve with a side salad or bread to round out the meal.

Helpful Tips:

- For an extra burst of flavor, you can also add chopped bell peppers or jalapeños to the cheese and onion mixture before sprinkling it over the potatoes.
- If you like your dish with more cheese, try mixing in some grated or shredded cheddar, Swiss or gruyere cheese in addition to the mozzarella used in the recipe.
- If any of your potatoes browning too quickly, gently cover the pan with aluminum foil.
- To make sure the potatoes cook faster, try slicing the potatoes very thinly – about 1/8 to 1/4 inch thickness.
- Try not to overfill the pan or the dish can spill out over the sides when it is baked as the baking dish might expand as the liquid evaporated from the potato mixture.
- For an easy clean-up after baking, use a glass baking dish so you can see if there are any food bits left in the dish.
assistant
8. Spread a layer of sliced potatoes in the bottom of the pan, then sprinkle some of the cheese and onion mixture on top of the potatoes.
user
Repeat the layers of potatoes and cheese mixture until all the ingredients are used up, making sure to finish with a layer of cheese on top. 

9. Pour the milk and cream mixture evenly over the top of the potatoes, making sure it seeps down between the layers.

10. Bake the gratin in the preheated oven for 60-75 minutes or until the potatoes are tender and the top is golden brown and crispy.

11. Remove the gratin from the oven and let it cool for a few minutes before serving. Garnish with chopped fresh herbs if desired.

Enjoy your delicious potato gratin as a comforting and satisfying side dish, or serve it as a main course with a fresh salad on the side. Bon appétit!
assistant