I tried to debug it as much as possible and now it works fine. I just need the scroller image. I tested it with a fourth page and that worked fine also. If you add a page or remove a page, be sure to reset the "pages" variable in the Stage.