fixed small issues with slice creation for a non pi