How to change ion-slides size based on import image size

my current images showing in ion-slides are on top of ion-slides, so there are a lot of spaces at the bottom of ion-slides.

how can I change the size of ion-slides based on the image or at least show the images in the middle of ion-slides to make the slides look better

Set the autoHeight property of ion-slides to true.