function createWrappedSlides(slides, count = 3) {
const wrappedSlides = [];
for (let i = 0; i < slides.length; i += count) {
wrappedSlides.push(slides.slice(i, i + count));
}
return wrappedSlides;
}
createWrappedSlides(slides).map((slide, i) => <Slide key={i} data={slide} />)