Task Panel allows you to designate which groups the user can expand and hide. You can specify individual groups or indicate that all groups can or can't be expanded.
Expandable Group
Non-expandable Group