memoize function width limit option