refactor auto size sections with helper