modify the device size