Place a single layer of the buttered bread on the bottom of the dish, tucking the slices together snugly. Place some of the cheese and ham on top, add a little black pepper, some thyme leaves then another layer of buttered bread and more of the cheese and ham. Continue until the ingredients are used up.