updating the size of the menu