public void addSlide(@NonNull Fragment fragment){
  fragments.add(fragment);
  mPagerAdapter.notifyDataSetChanged();
}

public void addSlide ( @ NonNull Fragment fragment ) { fragments . add ( fragment ) ; mPagerAdapter . notifyDataSetChanged ( ) ; }
adds a new slide
