fix problem with smarty

where pages would be displayed like [0-15] [15-30] etc (entries) instead
of << 1 2 3 4 5 >>