Smoother show/hide animation