Geometric stochastic resonance in a double cavity