Friedgut-Kalai-Naor theorem for slices of the Boolean cube