Improved garbage collector to enable fast swipe in pdf image-galleryView
on small devices