See for example https://www.maritime-executive.com/article/photos-fincantier..., where an entire cruise ship was cut in half and an extra section was inserted into the middle before welding everything together again. I will also never forget the training ship of the Dutch Navy, which was shortened by cutting it into half and removing a section from the middle. Sadly this messed up the hydrodynamics fiercely and it was extremely seasickness inducing in even moderate seas. The ship certainly was effective as a training vessel though.