Center and Scale Varying Image Sizes CSS

This is the slider with the CSS max-height:


This is the slider without the CSS max-height:

[i]
[i]