svg manipulation for timeline