fixes URL for gallery