Extended context switching to width and height