cleaning up resize, after width change, function.