set width/height on init