adding animation whe deleting an element