I am installing a new p-trap under my new vanity. The depth from the wall of the new vanity is about 6 inches shorter than the old and the tailpiece for the sink is now closer to the wall than before. Given the shorter distance from the tailpiece to the wall, I have been unable to match the j-bend with the trap arm even if I shorten the trap arm. The only way I have been able to hook it up is by rotating the pieces as shown in the picture.

All the pieces don't make an even plane with the wall. Is this acceptable and/or is there a better way to do this?