Add proper slideshow and pager functions to test page