simple pagination (fixes #5)