adjust position of enclosing dash line box