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

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