slice sample, log_sum_exp added