fixed side by side and top/bottom panning bug.