Add extra matching for top and bottom and width at same time.