rearrange layers