Size images correctly in slideshows