js rtl slider fix