iterate_chunks which will also slice