I always use a small amount of black weather strip adhesive on rubber and other types of gaskets.

Weatherstrip to hold the seal to the valve cover, not on the cyl. head side.

Thanks
Randy