Added functionality for sliced plots, not working yet