changes max/min width