for changing the shape of the device layer