added optional slider