minor refactor for animation in subcategory