Get started compose the layers in the pan, starting with a layer of potato slices on the bottom, followed by a bed of aubergines and mozzarella, possibly adding some chopped garlic. Continue layering until you run out of ingredients. Finish with a layer of mozzarella on top.