return gallery by chunks