improved container animation