changed end_slide