how to use mouse up event in slider