Getting the size correct on the device