fixes for animate-build : adapt to screen width and allow enclosing in intermediate element.