After some investigation, I have discovered the root cause of the unusual behavior in my component. The problem stemmed from how I was setting the height of the slide:
const heightCarousel = '80vh'
<Slider {...settings}>
<div style={{height:heightCarousel, background:'#F4CC67', padding:'15px 0', textAlign:'center'}}><h3>1</h3></div>
<div style={{height:heightCarousel, background:'#AA8326', padding:'15px 0', textAlign:'center'}}><h3>2</h3></div>
</Slider>
Instead of the above approach, I now let React-slick handle the width automatically for each slide:
<Slider {...settings}>
<div style={{background:'#F4CC67', textAlign:'center'}}><div><h2>TEST</h2></div></div>
<div style={{background:'#AA8326', textAlign:'center'}}><h3>2</h3></div>
</Slider>
It's important to note that defining the height within a slide may lead to similar issues. Instead, adjusting the padding can be used to customize the content inside without causing problems.