added unslot, improved canvas panning logic