Place butter in a pan, and melt. Add garlic to butter, and stir. Add cream and warm to a low boil. Add Salt and pepper.
Place the ½ of the potatoes, shingled into an oven safe pan. Top with ½ of the shallot and ½ of the cheese.
Repeat, and pour the cream over. Place the last of the cheese over the top.