Generating preview when adding or reordering elements.