update layout size