fix deform alternate

Dear lammps users,
Is there any way in lammps to shrink or expand a dimension with non-periodicity? Since fix deform can not be used on non-periodic boundaries, I can’t use it.

Thank you.

Rajesh