change height and width at the same time