How to fix (but not freeze) an adsorbent slab in lammps

Dear lammps users:
I want to fix a slab in my box as adsorbent, and I have tried “fix setforce” command like this:

Please try fix spring/self.

Axel