changing the bed size in the slicer should be sufficient.

But you can reflash the firmware with the new bed sie in the config.txt file to embed it in the firmware.

https://reprap.org/wiki/Configuring_...Bed_Dimensions