splitting pdf with pdftk
There is an app called PDFsam. SAM stands for split and merge. There is a free Basic version of this app and you can set the pages to keep together. You can split every n pages.  It should do what you want without coding.