Fixed some absolute pixel widths to relative

Also optimized a bit