resolved small bug for the slider