Slide Image Like This

I make this. i need help to swipe them.
Like if i swipe to red side then Red Vertical Arrangement come to center with size of 540x300 and center image goes go green side with same as green size.
My simple question is how to make swipe image to show previous and next at sides, like other wallpaper apps do.