EDIT: changed my answer because previous one was wrong:
You have to write a JS expression that paginates your list like this:
get getContacts() {
return [
{ id: 0, items: ['a', 'b', 'c', 'd', 'e']}, // Page 0, max 5 item
{ id: 1, items: ['f', 'g'],} // Page 1
];
}
Then use two iterations in your template:
<template for:each={getContacts} for:item="page">
<div key={page.id}>
<template for:each={page.items} for:item="contact">
{contact}
</template>
</div>
</template>