bugfix:making image gallery wokr again