A model for the transition between incompressible phases