set maxy in slideshow preview