Slider That Adjusts Height based on Image Size

A site I’m working on uses a slider with 3-5 images that often vary in size and aspect ratio. I’m trying to find out how to have the slider scale up and down as needed to accommodate the range in images. I have attached a few screenshots of some of the issues.

This is how the crop should look:

But at wider breakpoints the top and bottom are cropped.

If I adjust the slider image to not crop the image as much, then when there’s a wide format image there ends up being a bunch of white space under the slider:

Any help is hugely appreciated. Thank you!

Read-Only: Webflow - Ratcliff Architects