dismiss the keyboard when sliding