Add gallery query and route