the best way imo would be to support swipes in 8 directions. that way you can get to any of your 9 desktops in a single swipe eg 1 2 3 4 5 6 7 8 9 5 is active. to get to 3, i swipe to the bottom left so that the screen moves to the top right. etc now my desktops are in the pattern 8 9 7 2 3 1 5 6 4 etc