Adjust script to make slideshow smooth.