implement basic pagination by adding a offset filter