toggle maxWidth to minWidth