damnit quick fix for gallery\index