After they cool, let them marinate in the fridge for at least 4 hours. You can leave them in the pan or arrange them in jars, so they will take up little space.
This pickled mushrooms can be stored for up to 3 months in the refrigerator, but I assure you that they will not arrive :) Usually they are eaten very quickly.