add snippets to control the display of the content of slide