Added shown property to boundaries to prevent uncessary DOM manipulation
Small refactor to the shown logic
Added a default background colour to avoid the more noticable whiteout
Added hard clipping and removed resize debounce