Make cheese sauce over the stove in a pot by adding heavy cream, butter, flour, horseradish, onions, salt and pepper. Add in Parmesan and gruyere cheeses to thicken.
In a baking dish, layer sauce then potatoes, then top with gruyere cheese, salt and pepper. Continue layering until done. Too with green onions.