how to use recursive and chunk loop in the same time

Furthermore please check these posts they seems very comprehensive and detailed (more complex what you need but maybe they will give you some inspiration) I am sure you will find what you are looking for:

Kind regards!