ENH: removed the hard coded names of slice views and replaced it with a query from layout manager