Hidden Slider not resizing

Hello! I have a hidden slider that fades in on a button click. It’s working perfectly however, if I were to resize the browser after the page loads and open up the slider, the slide’s width is following the first page load and placement is off. If I were to refresh the page with the current browser size, the slider’s width is then correct and the slides displays properly.