Add class depending on the width of the document.