adding gallery API