Changed the mechanisme of the rotation animation, now we have the size of the mainPannel changing to it's content.