add very basic implementation of opposite-position function

this is implemented in compass as ruby code