improved curtain animation