I have the same problem: But I also want to get rid of the freezing.
My short-term solution is the following:
If you click the play button (which directs you to a new layout), I display a loading image, then wait for 0.5sec (so the image has a chance to be displayed) and then call the 'go to layout' function.
Since the game is actually freezing the loading image can't be animated. But at least the player has some kind of feedback.