Keep aspect ratio of slider and preview images