deepcopy for sublayer attachments