pass next slide_number before slide change