improve AppletItem.layoutLength binding
--it is now lighter and is executed only when it must be updated