extract maxOptionSize to a pager widget configuration option