Hi @vidu_1 ,
Based on the information provided, it seems like the issue is related to the way the custom slider component is implemented. Without more details about the implementation, it's difficult to provide a definitive solution. However, here are some general guidelines and considerations that might help:
1. Component Design: Ensure that the custom slider component is designed to handle multiple instances on the same page. Each instance of the component should be independent and not interfere with other instances.
2. Component State: Check how the component stores and manages its state. It's possible that the component is using a shared state object that is being overwritten by each instance. Make sure that each instance of the component has its own state object that is not shared with other instances.
3. Component Configuration: Check how the component is configured and initialized. It's possible that the component is using a global configuration object that is being overwritten by each instance. Make sure that each instance of the component has its own configuration object that is not shared with other instances.
4. Component IDs: Check how the component generates and uses IDs for its elements. It's possible that the component is using the same IDs for elements in each instance, which can cause conflicts and unexpected behavior. Make sure that each instance of the component generates unique IDs for its elements.
5. Testing: Test the component thoroughly with multiple instances on the same page. Try different configurations and make sure that each instance behaves as expected and does not interfere with other instances.
It's also recommended to consult with experienced AEM developers or solution architects who have implemented similar custom components to get insights and best practices specific to your use case.