To collapse line item groups, navigate to your project, then to your line item group(s). Click the little arrow at the top of the line item group you’d like to collapse (or expand).
Sometimes it’s helpful to collapse line item groups to reorder things.