dom slider fix for devices