added pagination to memories index