fixed aspect ratio row/col calculation forgrid mode