def METHOD_NAME(self, axis, label):
    sizer = wx.BoxSizer(wx.VERTICAL)
    sizer.Add(wx.StaticText(self.panel, -1, label, style = wx.ALIGN_CENTRE),
            1, wx.ALL | wx.EXPAND, 5)
    slider = wx.Slider(self.panel, maxValue = self.images.shape[axis] - 1,
            style = wx.SL_AUTOTICKS | wx.SL_LABELS)
    slider.Bind(wx.EVT_SCROLL, lambda event: self.onSlider(axis, event))
    self.axisToSlider[axis] = slider
    sizer.Add(slider)
    return sizer