`$editorHolder.offset().left` and `$previewContainer.width()` should be calculated once and stored in variables.