add edit/view templates for slots and refactor slots html