Touch and slide interaction question

hi friends!

i’m trying to make a simple app that have this touch and slide interaction
i only have experience with a “on click” interaction though, totally no idea how do i accomplish something like this



and as for the globe below, i would also want to make it rotate to the current location shown in the picture behind, for example, when i slide and the next picture is taj mahal, the globe will rotate as the picture gallery rotates, then stop at somewhere an angle that showing India( i dont know if i made that clear, if not feel free to ask)

this is quite a huge step for me, from a video editor to making this interaction kinda thing, so i dont really know where to start to explain this whole thing, so feel free to leave your questions below if there’s something i didnt make clear hehehe