Added ability to delete slots and template slots