I have a left over piece of “Porter’s” foam here on my desk. It measures: 12 x 24 mm. I think that any neoprene sponge rubber seal will do as long as it has more or less the same dimensions as the old gasket. Any technical rubber supplier in your neighborhood should be able to help you. If not try this.
There is an article with a picture about cutting and gluing gaskets here.