Initial implementation of page numbers and navigation arrows for galleries.