Answer
Please see the work below.
Work Step by Step
We know that as the gecko walks, its foot bends in such a way that the hair at back edge of its toes disengage while its toe is free. In this way, geckos easily connect to and walk on the surface.