adding carousel swap to orientation change function