fit slideshow on load

added script to fit slideshow on load