Fixing recipe open/close slider bug