1
If closing lightbox will destroy the slider, you have to build the slider again when opening the lightbox that you closed earlier.
In another scenario, when the slider is placed inside a hidden panel when the page is launched, the slider will not be initiated properly (as it does not know its size at that time). When the hidden panel becomes visible, you also need to call the imageSlider.reload()