Fix thumbnail sizing when switching modes

Because of how scrollbars work, we need to add a small timeout to make sure scrolllbars are added before calculating the width of the list