Add blocks around perPage links