getting height and width