fixing image gallery