Fixes various issues with loading images into seamless gallery, fixes slideshow and fixes last row of images not showing.