Let Smarty handle the display side of the pagination, we just need to tell it the data. This actually works better than before now and will always try and keep 5 pages available