Adapting transitions to new layout