cleanup animation - height calculation and duration