Implement paging for default gallery