make preview relative