implement perform_slide function