I think you should be fine with 4 inches. Just remember, the further between the monitor and the sensor bar, the further you have to stand away from your cabinet. This is because the gun sensor has to be able to see the sensor bar while you're aiming at the bottom of the screen. But again, at 4 inches, you should be able to play fine.
I can try to run some tests tomorrow if I remember.