pagination of directory