introduce offset, next, and previous links to support pagination