Expand gfx_context with prev/next functions