Refresh current photo index after bar buttons are set.