crop output to preview layers size, fix this later