Layers cannot change their depth. So I think best you can do is have two sets of arms (one in front, one behind) then use triggers or a swap set to flip between the in front / behind arms.
Alternatively, I think you can have two bodies (one in front and one behind) and hide/reveal the body in front