Refactored side menu animation