Slideshow: change image max size to 1024px & code styling