open gallery through hash change