Golden Beet Gratin



1 large golden beet, peeled, ends trimmed and thinly sliced
¾ cup full fat coconut milk from a can
2 cloves garlic, minced
salt and pepper
4-5 sprigs fresh thyme removed from stem, plus more for garnish
¼ cup chopped walnuts
¼ cup freshly grated parmesan cheese