fix data url be using slice instead of slice