playlist:fix resize waveforms on play/next/previous
playlist:refactor code for resize waveforms