Transition without using buttons

how can transit from one picture to another without using buttons?