slide duration, hide keyboard