Improved archive pagination