gallery lightbox url/history support
fixing tests