added mouseup event for slider