heatmap downsampling