fixed image gallery issue