when updating active slide, when position is not provided, use the index of the last active slide instead of the css translate value