on_slide function

Change current slide