implement next slide and restart