slider change class algo working