Bugfixing for slide in animation