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

and sorry, maybe the autostrip space does some edits