get data from shopstyle api call in clientside, but masonry is not working after first load