adding infinite scrolling and modals to load images;