refactoring of slide_metadata