New media type and some improvements

now media can hold html code.
added a way to swap media with text in a slide.
prevent marker and slider to gou out of bounds when reloading smaller dataset