change width and height's unit of custom box