Fix undefined method error and refactor slides related pages