Added auto-reset

added a behavior to the script so that it will automatically reset if the inventory changes.  This is to facilitate the owner adding/removing slides without requiring a manual reset.