Can the slider adjust to different image ratios?

Can the slider adjust to different image ratios?

In my slideshow folder I have some images in landscape layout, some in portrait. The slider puts them all within the same size frame, so the gaps between images is inconsistent. Is there a way to adjust the frame to the image so that the spacing between images is consistent, regardless of the width of the image?