set flyer height with js to implement infinite scroll