The key is removing moisture from the eggplant before assembling the dish. This is another reason why it’s a good idea to salt the eggplant slices before making the dish.