change styles on resize to support responsize designs