split size into width and height, clean up