added css for small medium and large when resizing and on load