move the data- attributes for figures and tables