Update slider bar with window size event