Grouping primary layers into a layer group