Algorithm to get slide in focus completed.