How to Inject multiple dummy Ad blocks in the hits block in instantsearch results?

I would like to add Advertiseblock in the product grid (hit template) at some position lets say on 6th, 10th and so on. Advertise block position can be random.

I’m using custom hits:

const { connectHits } = instantsearch.connectors;
				// Create the render function
				const renderHits = (renderOptions, isFirstRender) => {
				const { hits, widgetParams } = renderOptions;
				  
				if (isFirstRender) {
					return;
				}
				widgetParams.container.innerHTML = `
					<ul>
					  ${hits
						.map(
						  item =>
							`<li>
							  ${instantsearch.highlight({ ${item.title} })}
							</li>`
						)
						.join('')}
					</ul>
				  `;
				};
				
				const customHits = connectHits(renderHits);

				search.addWidgets([
				  customHits({
					container: document.querySelector('#algolia-hits'),
					
					transformItems(items, { results }) {
					  return items.map((item, index) => ({
						...item,
						position: { index, page: results.page },
						title: item.post_title.toUpperCase(),
					  }));
					},
					
				  })
				]);

Intent is to show dummy block and pagination should consider that item as well.

Thanks in advance.