magento2 – Knockout foreach afterRender

How can I call afterRender after generating all the foreach elements? I want to initialize the slider after rendering all the slides.

I tried:

but put console.log (jQuery (& # 39 ;. slide & # 39;). length) in the renderingDelivery function. Sometimes he writes 0 elements, sometimes they are all generated. LoadedDelivery fires the.