added support for changing elements

If the container or mark change height or place, the plugin should catch
that and still work.