fix width/height to classes