fix adding preview-icon to clss attribute