build_gallery works for localhost
 merged