Sorted out the resize index slides bug