Recalculating index sizes on rotation