fix slides and galleries in jinja-default