2 part mold?

I want to make a 2 part mold that when completed can be opened and closed (similar to an air freshener dispenser) I have all my materials, I'm unable to find a way to connect the 2 completed molds together, any suggestions