Box-slide independent extension

Separating global variables and making them binded to the object being
extended.