fix preview to change position