It is important to salt the eggplant slices and allow time for them to shed excess moisture otherwise, it will drain out while baking and cause the dish to be soggy.