setting correct aspect ratio