Calculate height and width of current container height and width