fixed some gallery stuff