Changed some functionality for plotting sliced files