Move tabs as far as possible if index out of range