map: rearrange layers