update vertical size