I want to use ViewPager inside of RecyclerView(for multiple images like instagram). But when I scroll down and up the RecyclerView, the images are disappear. I think my problem is create a new Adapter inside of onBindViewHolder method. How can I create Adapter for once in ViewPagerAdapter ? Is there a solution for this ?

```
public void onBindViewHolder(@NonNull final RecyclerView.ViewHolder holder, final int position) {

    switch (holder.getItemViewType()){

        case 1:
        {
            final ViewHolderMultiple viewHolderMultiple=(ViewHolderMultiple)holder;

            viewHolderMultiple.user_name.setText(list.get(position).getUsername());

            Call<List<DetailPojo>> call = restApiClass.getImages(list.get(position).getId());
            call.enqueue(new Callback<List<DetailPojo>>() {
                @Override
                public void onResponse(Call<List<DetailPojo>> call, Response<List<DetailPojo>> response) {

                    if (response.isSuccessful()) {

                        if (response.body() != null) {

                            imagesList = response.body();
                            postSliderAdapter = new PostSliderAdapter(imagesList, context); //I think my problem is here
                            viewHolderMultiple.postsCircleIndicator.setViewPager(viewHolderMultiple.postsViewPager);

                            Log.i("imageList",imagesList.size()+"");

                        }

                    }

                }
                @Override
                public void onFailure(Call<List<LessonPostImagesDetailPojo>> call, Throwable t) {

                    Toast.makeText(context, "Connection Error", Toast.LENGTH_SHORT).show();
                }
            });

        }
        break;
        default: break;
    }

}

```