solve issue with visiblity when scroll through images