Echo pagination links outside collection foreach.