update slider.php file with motions for slide