fixing figure repsonsiveness