Add public method to get the current gallery index