split docs in multiple pages