How is a gasket used?

Gaskets are compressed between surfaces to maintain a seal. For this reason, most materials are slightly flexible, have good compression set (they bounce back) and allow for slight movement of the surfaces that they are secured between.