Fix event handling on slider so it doesn't interfere