Include checkbox and imagename under image in slider

Hi,
I have implemented swipe image slider in android studio using viewpager and imagefragmentpageadapter and it works as well. But now I want to include checkbox and imagename under each image in slider. When I swipe/slide image that checkbox with image name should also swipe/slide. I included checkbox in main xml file but application stops running. I to do this.