fix bug create_slice, now checks for the correct rights