Making larger and smaller functions split into horizontal and vertical