add resize throttle funtion