I know how to solve this problem what I wanted to open an issue anyway because maybe somebody is having the same problem and because I think is a bug.
If you create a slider without any style it overflows the body (and the container if any).
You fix this by adding padding. I finded the solution in the playground codesandbox provided in the readme file.
Also worked for me
.slick-initialized {
overflow: hidden;
}
For me, were the arrows that are displayed by default outside the slide, the overflow worked but also overriding the right property for .slick-next, or set arrows: false
.slick-initialized { overflow: hidden; }
this worked liked a charm, thank you!
Most helpful comment
Also worked for me
.slick-initialized { overflow: hidden; }