Added check on container width at different window sizes