[bug] take into account pinned tabs when moving by index, closes #6