made slug unique after saveAs, fixes #49