Collapsing accordions when category is collapsed