To improve memory and attention, you can simply learn the technologies of memorizing information.
Here you can get free videos on improving memory using mnemonics - https://ilgiz-sabirov.justclick.ru/CBEPX-zapominanie
If you learn to memorize with mnemonics, your attention will improve in gift :)
When you start to memorize different information, your memory will start to improve even more.
British brain researcher Tony Buzan said "The more we remember, the more we can remember"
I also recommend a book by the same Tony Buzan - "Memory Development in 7 Days"
I would advise you to read this article. Properties of Memory, in addition to some simple principles of its operation, the article describes several tricks on how to use them, I think this may help you. If, by the way, you really care about the topic of memory, check out the biography of a man like Joshua Forr. He is our contemporary and you can find his performances on YouTube. The guy was a journalist and came to a mnemonic competition (a specific sport in which the main task is memorization), he was amazed at how people remember the order of cards in 30 decks, reproduce snowflake patterns, reproduce book chapters word for word ... A year has passed and at the next such competition, he ... won. A person has every right to give advice on this matter, which he does. check out the article, among other things there is also an insert with his TED talk, maybe it will be interesting for you.
My channel will be saved only by your subscription, so I will be grateful
Kozarenko "textbook of mnemonics", you can find the latest version of the book on his website, or "How to develop absolute memory" by Dominic O'Brien, as far as I know it has not been fully translated into Russian