Improved animation for hiding