changed widths to max-widths, heights - max heights
screw that, changes widths and heights back