You can freely swap x/L/R moves when they're next to each other (and in fact Rw x and x Rw are exactly the same thing when executed quickly).
While (m)Lw' moves can combine with an x' rotation to become an (n−m)Rw' move, this is
not the case for slice moves. 3L' x' is not equivalent to 3R' (or 4R', or any other slice); it is instead equivalent to Lw 3Rw' (on a 6×6×6) or Lw 4Rw' (on a 7×7×7).
To wit, this is another way of writing the very same alg:
3R U2 x 3R U2 3R U2 (Lw 4Rw') U2 3L U2 3R' U2 3R U2 3R' U2 3R'