I want to overlap arms or legs in a basic rigged character, where the right arm, body, and left arm are in their respective layers. But since they are in layers, they go to the back of the body. Is there any trick or method to do this. i have attached a poor drawing of what i am asking.

If any people know here, please do help me.
Thank you.