How far can I move my bath tub trap from the vent?
It depends on the diameter of the trap.  Under International Building Code use table 906.1.  

A 1.5" trap can be 6 feet from the vent (if your trap is only 1.25" the maximum distance is 5 feet).

It looks like you should be fine in your situation.