automatic resize when grouping layers