make slideshow work for images with equal size