using foundation pagination directive

Fixes #1757