added min and max widths