add wrapping div for preview dialog