preview positioning fix