How to change lattice cell parameters without destroying and rebuilding crystal lattice?

I need to change the C parameter of a minimized lattice cell. As my structure is a polymer, when I tried to destroy and rebuild by crystal lattice with new parameters, some of the bonds at the edges of the cell were broken.  Does anyone know how to change the parameters without destroying the crystal first?