Resize window, duration slider bugfix