Layer the sliced potatoes in an oven-safe dish, seasoning each layer with salt and pepper. Spread the caramelized onions on top.