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

**URL:** https://forum.shopware.com/t/the-tiny-slider-product-slide-count-is-wrong-in-shopware-6/101621
**Category:** Programming (EN)
**Tags:** general
**Created:** [19. Oktober 2023 um 06:05 UTC](https://forum.shopware.com/t/the-tiny-slider-product-slide-count-is-wrong-in-shopware-6/101621 "2023-10-19T06:05:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)
#### Post date: [19. Oktober 2023 um 06:05 UTC](https://forum.shopware.com/t/the-tiny-slider-product-slide-count-is-wrong-in-shopware-6/101621/1 "2023-10-19T06:05:45Z")

</div>

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

> <https://github.com/shopware/shopware/blob/568ab6bced748a2e3bad277c0c9d2019462bcef7/src/Storefront/Resources/app/storefront/src/plugin/slider/base-slider.plugin.js#L166>

> <https://github.com/ganlanyuan/tiny-slider/blob/4d709735c417c2483e77a22d017fc1b18c04f0d4/src/tiny-slider.module.js#L256>

> <https://github.com/ganlanyuan/tiny-slider/blob/4d709735c417c2483e77a22d017fc1b18c04f0d4/src/tiny-slider.module.js#L1005>

![Screenshot from 2023-10-19 11-22-35](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/8/4/84edc263b521f8272be4904e87b9c20a0df77b79.png)

 ![Screenshot from 2023-10-19 11-22-00](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/b/a/ba18810ea57563a5c02f50dfbfcabf1b918c7cd2.png)
