change min to max widths 300 and 500px