implementation of Slot set and Slot animate