made preview expand on generate