if an object gets too small by resizing (cannot be moved anymore), set the minimal width and height to 20px