I usually "patch" my gaps in my resume by adding a period in which "I learned new tech, while doing a contract". The tech learned was React, Tessel.io microcontrollers, etc.
In interviews, that "contract was remote", and you can glide over it explaining "why you took some time off to learn these new techs, and how their were needed to expand your knowledge. Hope this helps :)
By "taking time off", i mean you put aside a full time job to make more room for learning with a contract.