added pagination and custom wavesurfer array to only display what gets filtered by pagination