fixed issue where slider changes on clicj