update the size of the applet