fix slider work on mobile devices