Preheat oven to 400 degrees. Spray small casserole dish or a cake pan with non-stick spray.
Mix garlic, butter, salt, pepper and thyme in a cup.
Place sliced potatoes in pan and then pour butter mixture over top, making sure it gets into each slice of potato.
Top with shredded cheese and make sure some of it gets into each slice of potato. Bake covered with foil for 30 minutes and uncovered for 25 minutes.
This can easily be made in advance and then reheated in the oven or under the broiler before serving.