utility functions and auto scrolling for slideshow;