adding slice example