Dynamically change classes when resizing widget (all widget + sidebar)