Edited paging section in directory list page

fixed gallery page paging issue