adjusting image gallery