The layers used for the masks can be in groups.