Recursive search and screen resize