update aspectratio when changing viewport