Improved animation to hide navigation bar