When grouping layer tree nodes, insert new group at the same position