Updated null check if in slider-mode when only have 1 child and window resized