fix snapping on slider click