Fixing the customized slider class