adds better animation delay to expanded class