added min and max width