panning between two adjacent views