using the wp_is_mobile() function now
moving the slider function to the page.php and deleting slider.php