added code (disabled for now) for showing slices on frame