fix img gallery display