reszie spectrogram properly