output base url in gallery