added pagination to snippet overlay