added animation also for hide