checking for desktop to display slider