Preventing mouse events on slider