able to toggle btw images and video and keep correct timeline