Interestingly enough, I have this same problem, but my gallery is in it's own subdomain, with it's own Apache virtual server and directory entirely outside of vBulletin.

Changing the VB3 integration option to off allows me to see the gallery but without the vB header.