dynamic calculate the h,wUnit of the block to show