added pagination to media