The tiny slider (Product slide) count is wrong in shopware 6

The tiny slider (Product slide) count is wrong

Shopware using tiny slider node module for product slider.

The product slider shows the wrong count. Actually, there are 21 slides but the slider shows the count as 5.

The slider calculates the total number of slides by container.children.length which returns a wrong count

container is the div having class product-slider-container

Screenshot from 2023-10-19 11-22-35