swap index and timeline