"We're here to teach you the art of come-in-from-the-cold cuisine...."
olive oil, plus more for baking dish
medium onions, thinly sliced
Kosher salt and freshly ground black pepper
heavy cream
garlic cloves, thinly sliced
chopped fresh thyme
chopped fresh rosemary
Gruyère, grated (about 2 cups), divided
Parmesan, grated (about 1 cup), divided
Yukon gold potatoes, peeled and sliced 1/4-inch thick